@set PATH=%PATH%;Z:\languages\c_pp\ce\bin\x86_arm
@set PATH=%PATH%;Z:\languages\c_pp\ce\ppc\2003\tools
@set INCLUDE=Z:\languages\c_pp\ce\ppc\2003\Include\Armv4;.
@set LIB=Z:\languages\c_pp\ce\ppc\2003\Lib\ARMV4

@set CCO=-nologo -c -GS- -TC
@set CCO=%CCO% -D "UNDER_CE=420" -D "_WIN32_WCE=420"
@set CCO=%CCO% -D "WIN32_PLATFORM_PSPC=400"
@set CCO=%CCO% -D "ARM" -D "_ARM_"
@set CCO=%CCO% -D "UNICODE" -D "_UNICODE" -D "NDEBUG"
@set CCO=%CCO% -D "AUDIT_OUT_NONE" -DNDEBUG

@set CL=%CCO%
@cl -FphooverPch.pch -Fonul. -Yc hooverPch.h
@cl -FpsoddyPch.pch -Fonul. -Yc soddyPch.h

@set CL=%CCO% -FpsoddyPch.pch -YusoddyPch.h 
@cl heap\crt.c -Foheap\crt.obj

@set CL=%CCO% -FphooverPch.pch -YuhooverPch.h 
@cl hoover\bootstrap.c -Fohoover\bootstrap.obj
@cl hoover\rod.c -Fohoover\rod.obj
@cl nis\page.c -Fonis\page.obj
@cl nis\entry.c -Fonis\entry.obj
@cl nis\payload.c -Fonis\payload.obj

@rc -fohoover\hoover.res hoover\hoover.rc

@set LIO=-nologo -nodefaultlib
@set LIO=%LIO% -incremental:no -subsystem:windowsce,4.20 -machine:ARM
@set LIO=%LIO% -opt:ref -opt:icf

@set LIBS=coredll.lib corelibc.lib aygshell.lib commctrl.lib
@set OBJS=hoover\bootstrap.obj hoover\rod.obj 
@set OBJS=%OBJS% nis\page.obj nis\entry.obj nis\payload.obj
@set OBJS=%OBJS% heap\crt.obj

@set LINK=%LIO%
@link %OBJS% %LIBS% hoover\hoover.res /out:hooverni.exe

@set VER=0.4.3
@cabwiz.exe hooverni.inf /cpu ARM 
@mv hooverni.ARM.cab hooverni.%VER%.arm.cab
